package com.lucifer.cloud.auth.util;

import org.apache.commons.lang3.StringUtils;

/**
 * @author lucifer
 * @date 2023/11/1 11:45
 */
public class RandomUtil {
    public static String get4(){
        int nextInt = cn.hutool.core.util.RandomUtil.getRandom().nextInt();
        String value = String.valueOf(nextInt);
        String code = StringUtils.substring(value, 1, 5);
        return code;
    }
}
